//
//  ACBaseModel.m
//  ACFramework
//
//  Created by caoyq on 2018/12/4.
//

#import "ACBaseModel.h"
#import <YYModel/YYModel.h>

@implementation ACBaseModel

#pragma mark - YYModel override

+ (NSDictionary *)modelContainerPropertyGenericClass
{
    return nil;
}

+ (NSDictionary *)modelCustomPropertyMapper {
    return nil;
}

#pragma mark - NSCoding

- (void)encodeWithCoder:(NSCoder *)aCoder
{
    [self yy_modelEncodeWithCoder:aCoder];
}

- (id)initWithCoder:(NSCoder *)aDecoder
{
    return [self yy_modelInitWithCoder:aDecoder];
}

#pragma mark - NSCopying

- (nonnull id)copyWithZone:(nullable NSZone *)zone
{
    return [self yy_modelCopy];
}

#pragma mark - other

//后期测试时发现没用，最终还是子类进行重写来判断model相等
- (BOOL)isEqual:(id)object
{
    return [self yy_modelIsEqual:object];
}

- (NSString *)description
{
    return [self yy_modelDescription];
}

@end
